package com.fzz.dao;

import com.fzz.domain.View;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ViewMapping {

    @Insert("insert into tb_view(viewUrl,imgUrl,viewName) values(#{viewUrl},#{imgUrl},#{viewName})")
    public void addView(View view);
    @Select("select * from tb_view")
    public List<View> loadView();
    @Select("select * from tb_view")
    public List<View> selectViewWithPage();
}





